
import {setScheduleDay,setSchedule,removeSchedule} from '../schedule/index.js'
import {getOneNews,heartCheck,nowTime,ClearMessage} from "./task.js"
 async function initDay() {
    console.log(`已经设定每日任务`);
    nowTime()
    // setScheduleDay("0 0 10 * * *", getOneNews);
    // heartCheck()
    setSchedule('heart',"0 0 */2 * * *", heartCheck);
    setSchedule('clear',"0 0 5 * * *", ClearMessage);

  }

  export default initDay